
import Vue from "vue";
import Vuex from 'vuex'
import count from './modules'

Vue.use(Vuex)

const store = new Vuex.Store({
    // state:{
    //     count:1
    // }
    state: {
        count: 0
      },
      mutations: {
        addCount(state) {
          state.count += 1
        },
        reduceCount(state) {
          state.count --
        }
      },
      actions: {
      },
    modules:{
      count
    }
}) 

export default store 
